#include "xsliderthread.h"

void XSliderThread::run()
{
    for(;;) {
        mutex.lock();
        if (isExit) {
            mutex.unlock();
            break;
        }
        double pos = XVideoThread::getInstance()->getPos();
        emit sigSendPos(pos);
        mutex.unlock();
        msleep(40);
    }
}

XSliderThread::XSliderThread(QObject *parent)
    : QThread{parent}
{}


